<?php
class AppController extends Controller {
    
    var $components = array('Acl', 'Auth');
    
    function beforeFilter() {
        parent::beforeFilter();
        $this->set('theme', 'cupertino');
        $this->Auth->actionPath = 'controllers/';
        //Configure AuthComponent
        $this->Auth->authorize = 'actions';
        $this->Auth->loginAction = array('controller' => 'users', 'action' => 'login');
        $this->Auth->logoutRedirect = array('controller' => 'users', 'action' => 'login');
        $this->Auth->loginRedirect = array('controller' => 'ftpfiles', 'action' => 'index');
        
    } 

}
?>
